clear;
%% Sensor Reliability 
% i = 0;
% for x = -7:0.1:7
%     i = i+1;
%     j = 0;
%     for y = 0: 0.1:5
%         j = j+1;
%         point{i,j} = [x y];
%         value(i,j) = Reliability(point{i,j});        
%     end
% end
% 
% close all;
% figure;
% imagesc(value);

%% Show Direction
x = 1;
y = 2;
alpha = 0*pi/180;
r = 2;

newX = x-r*sin(alpha);
newY = y+r*cos(alpha);

close all;
figure;

plot(0,0,'ro');
hold on;
line([-2 2],[0 0],'Color','k');
hold on;
line([0 0],[-5 5],'Color','k');
plot(x,y,'r*');
hold on;
line([x newX],[y newY]);

axis([-2 2 -5 5]);
